{template 'common/header'}
<div class="main">
<ul class="nav nav-tabs">
	<li class="active"><a href="{php echo $this->createWebUrl('list');}">二维码簿列表</a></li>
	<li><a href="./index.php?c=platform&a=reply&do=post&m=tim_book">添加二维码簿</a></li>
</ul>	
	<div style="padding:15px;">
		<form action="" method="post">
		<table class="table table-hover">
			<thead class="navbar-inner">
				<tr>
					<th align="center" style="width:20px;text-align:center;">ID</th>						
                    <th align="center" style="width:80px;text-align:center;">标题</th>
					<th align="center" style="width:50px;text-align:center;">Tips</th>
					<th style="width:100px;text-align:center;">操作</th>
				</tr>
			</thead>
			<tbody>
				{loop $list $row}
					<tr>		
						<td align="center" style="text-align:center;">{$row['book_id']}</td>
                        <td align="center" style="text-align:center;">{$row['title']}</td>
                        <td align="center" style="text-align:center;">{$row['tips']}</td>
						<td style="text-align:center;">
							<a href="{php echo $this->createWebUrl('add_data',array('book_id'=>$row['book_id']))}"><button type="button" class="btn btn-default btn-sm"><i class="fa fa-edit"></i> 二维码</button></a>
							
                        	<a href="./index.php?c=platform&a=reply&do=post&m=tim_book&rid={$row['rid']}&book_id={$row['book_id']}" title="编辑"><button type="button" class="btn btn-default btn-sm"><i class="fa fa-edit"></i></button></a>
                        </td>
					</tr>
				{/loop}
			</tbody>
		</table>
	</form>
		{$pager}
	</div>
</div>
{template 'common/footer'}